/* 声破天音乐库样式 */

/* 主内容样式 */
.library-content {
    padding: 24px;
    padding-top: 0;
    overflow-y: auto;
    height: calc(100% - 80px);
}

/* 标题部分 */
.library-header-section {
    padding: 24px 0;
    margin-bottom: 20px;
}

.library-header-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 标签导航 */
.library-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.library-tab {
    background: none;
    color: #b3b3b3;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.library-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.library-tab.active {
    background-color: #333;
    color: #fff;
}

/* 筛选区域 */
.library-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
}

.filter-btn, .sort-btn, .search-lib-btn {
    background: #282828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-btn:hover, .sort-btn:hover, .search-lib-btn:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.search-lib-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* 搜索输入框 */
.library-search-input {
    display: flex;
    align-items: center;
    background: #282828;
    border-radius: 20px;
    padding: 6px 12px;
    width: 240px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.library-search-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 4px 0;
    font-size: 14px;
}

.library-search-input input:focus {
    outline: none;
}

.library-search-input input::placeholder {
    color: #999;
}

.close-search-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

.close-search-btn:hover {
    color: white;
}

/* 标签内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 内容区块 */
.saved-section, .my-playlists-section, .followed-artists-section, .saved-albums-section {
    margin-bottom: 40px;
}

.saved-section h2, .my-playlists-section h2, .followed-artists-section h2, .saved-albums-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-left: 10px;
}

.saved-section h2::before, .my-playlists-section h2::before, 
.followed-artists-section h2::before, .saved-albums-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #1DB954;
    border-radius: 2px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* 卡片样式 */
.card {
    background: #181818;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    background: #282828;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card-img {
    position: relative;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1DB954;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(8px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.play-button:hover {
    transform: scale(1.1) !important;
    background-color: #1ed760;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 艺术家卡片 */
.artist-card {
    background: #181818;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.artist-card:hover {
    background: #282828;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.artist-img {
    position: relative;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.artist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.artist-card:hover .artist-img img {
    transform: scale(1.05);
}

.artist-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card p {
    font-size: 14px;
    color: #b3b3b3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 艺术家网格 */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* 空内容样式 */
.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    color: #b3b3b3;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.empty-icon i {
    font-size: 36px;
    color: #1DB954;
}

.empty-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.empty-content p {
    font-size: 16px;
    max-width: 400px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.browse-btn {
    background-color: #1DB954;
    color: #000;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.browse-btn:hover {
    transform: scale(1.05);
    background-color: #1ed760;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .library-tabs {
        overflow-x: auto;
        padding-bottom: 16px;
        gap: 8px;
    }
    
    .library-tab {
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .artist-grid, .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .card, .artist-card {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .library-header-section h1 {
        font-size: 24px;
    }
    
    .card-grid, .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn, .sort-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .saved-section h2, .my-playlists-section h2, .followed-artists-section h2, .saved-albums-section h2 {
        font-size: 20px;
    }
} 